package com.agritech.factory;

import com.agritech.machine.AgriculturalMachine;
import com.agritech.machine.Tractor;

/**
 * 拖拉机工厂类
 * 工厂方法模式的具体实现，负责创建拖拉机实例
 */
public class TractorFactory implements MachineFactory {
    
    @Override
    public AgriculturalMachine createMachine(String id) {
        System.out.println("创建新的无人驾驶拖拉机，ID: " + id);
        return new Tractor(id);
    }
}